import 'package:flutter/material.dart';

class Orderdetail extends StatefulWidget {
  const Orderdetail({super.key});

  @override
  State<Orderdetail> createState() => _OrderdetailState();
}

class _OrderdetailState extends State<Orderdetail> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          backgroundColor: Theme.of(context).colorScheme.inversePrimary,
          // widget 获取上边类实例
          title: const Text('订单详情'),
        ),
        body: Center(
          child: TextButton(
            child: const Text(
              '点击返回订单列表页',
              style: TextStyle(fontSize: 24.0),
            ),
            onPressed: () {
              // 路由返回上一级页面
              Navigator.pop(context);
            },
          ),
        ));
  }
}
